package cn.edu.ujn.project.supermarket.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonFormat;

import cn.edu.ujn.project.common.annotation.Excel;
import cn.edu.ujn.project.common.core.domain.BaseEntity;

/**
 * 销售记录对象 sell_report
 * 
 * @author zhaomh
 * @date 2023-11-13
 */
public class SellReport extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销售订单号 */
    @Excel(name = "销售订单号")
    protected String sellId;

    /** 会员号 */
    @Excel(name = "会员号")
    protected String vipId;

    /** 商品条形码 */
    @Excel(name = "商品条形码")
    protected String barCode;

    /** 销售数量 */
    @Excel(name = "销售数量")
    protected Integer quantity;

    /** 销售日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    protected Date date;

    
    public SellReport() {
		super();
	}
    public SellReport(SellReport sell) {
		super();
		this.sellId = sell.sellId;
		this.vipId =  sell.vipId;
		this.barCode =  sell.barCode;
		this.quantity =  sell.quantity;
		this.date =  sell.date;
	}
	public SellReport(String sellId, String vipId, String barCode, Integer quantity, Date date) {
		super();
		this.sellId = sellId;
		this.vipId = vipId;
		this.barCode = barCode;
		this.quantity = quantity;
		this.date = date;
	}

	public void setSellId(String sellId) 
    {
        this.sellId = sellId;
    }

    public String getSellId() 
    {
        return sellId;
    }
    public void setVipId(String vipId) 
    {
        this.vipId = vipId;
    }

    public String getVipId() 
    {
        return vipId;
    }
    public void setBarCode(String barCode) 
    {
        this.barCode = barCode;
    }

    public String getBarCode() 
    {
        return barCode;
    }
    public void setQuantity(Integer quantity) 
    {
        this.quantity = quantity;
    }

    public Integer getQuantity() 
    {
        return quantity;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("sellId", getSellId())
            .append("vipId", getVipId())
            .append("barCode", getBarCode())
            .append("quantity", getQuantity())
            .append("date", getDate())
            .toString();
    }
}
